import { post } from "./request";

const baseApi = "";
const chatApi = baseApi + "/api.php";
const testApi = baseApi + "/api222.php";

function chat(desc) {
    let data = { "question": desc, "api_key": "fe238439a44e354aa7fa4fca0b5fb963", "api_secret": "a603nozdm1q4" };
    return post(chatApi, data);
}

function test(desc) {
    let data = { "question": desc, "api_key": "fe238439a44e354aa7fa4fca0b5fb963", "api_secret": "a603nozdm1q4" };
    return post(testApi, data);
}

export {
    chat,
    test
}